<%--
  Created by IntelliJ IDEA.
  User: 冯宝宝
  Date: 2020/3/26
  Time: 7:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>

<head>
    <title>个人信息</title>
    <link rel="stylesheet" href="../plugins/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="../plugins/adminLTE/css/AdminLTE.css">
    <link rel="stylesheet" href="../plugins/adminLTE/css/skins/_all-skins.min.css">
</head>

<body class="hold-transition skin-purple sidebar-mini">

<div class="wrapper">

    <!-- 页面头部 -->
    <jsp:include page="header.jsp"></jsp:include>
    <!-- 页面头部 /-->

    <!-- 导航侧栏 -->
    <jsp:include page="aside.jsp"></jsp:include>
    <!-- 导航侧栏 /-->

    <!-- 内容区域 -->
    <div class="content-wrapper">

        <!-- 内容头部 -->
        <section class="content-header">
            <h1>
                个人信息查看
                <small>个人信息</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="all-admin-index.html"><i class="fa fa-dashboard"></i> 首页</a></li>
                <li><a href="all-travellog-review-list.html">个人信息查看</a></li>
                <li class="active">个人信息</li>
            </ol>
        </section>
        <!-- 内容头部 /-->

        <!-- 正文区域 -->
        <section class="content">
            <div class="box-body">
                <!--tab页-->
                <div class="nav-tabs-custom">
                    <!--tab头-->
                    <ul class="nav nav-tabs">
                        <li class="active">
                            <a href="#tab-form" data-toggle="tab">个人信息</a>
                        </li>
                    </ul>
                    <!--tab头/-->

                    <!--tab内容-->
                    <div class="tab-content">
                        <!--表单内容-->
                        <div class="tab-pane active" id="tab-form">
                            <div class="row data-type">
                                <div class="col-md-2 title">姓名：</div>
                                <div class="col-md-2 data text">
                                    ${student.susername}
                                </div>

                                <div class="col-md-2 title">性别：</div>
                                <div class="col-md-2 data text">
                                    ${student.ssex}
                                </div>
                                <div class="col-md-2 title">学号：</div>
                                <div class="col-md-2 data text">
                                    ${student.sno}
                                </div>
                                <div class="col-md-2 title">电话：</div>
                                <div class="col-md-2 data text">
                                    ${student.stelphone}
                                </div>
                                <div class="col-md-2 title">生日：</div>
                                <div class="col-md-2 data text">
                                    ${student.sbirthday}
                                </div>
                            </div>
                            <hr style="width: 2px;color: black;">
                            <!--工具栏-->
                            <div class="pull-left">
                                <div class="form-group form-inline">
                                    <div class="btn-group">
                                        <a href="${pageContext.request.contextPath}/StudentServlet?method=findJoinCommunity&sid=${student.sid}" class="btn btn-default"><i class="fa fa-trash-o"></i>我加入的社团</a>
                                    </div>
                                </div>
                            </div>
                            <c:if test="${not empty join}">
                                <table id="dataList" class="table table-bordered table-striped table-hover dataTable">
                                <thead>
                                <tr>
                                    <th class="sorting">社团名称</th>
                                    <th class="sorting">创建时间</th>
                                    <th class="sorting">社长</th>
                                    <th class="sorting">指导老师</th>
                                    <th class="sorting">社团介绍</th>
                                </tr>
                                </thead>
                                <tbody>
                                <c:forEach items="${join}" var="j">
                                <tr>
                                    <td>${j.cname}</td>
                                    <td>${j.ctime}</td>
                                    <td>${j.responsibility}</td>
                                    <td>${j.cteacher}</td>
                                    <td>${j.cintroduce}</td>
                                </tr>
                                </c:forEach>
                                </tbody>
                            </table>

                            </c:if>
                        </div>
                        <!--表单内容/-->
                    </div>
                    <!--tab内容/-->

                </div>
                <!--tab页/-->
            </div>

        </section>
        <!-- 正文区域 /-->

    </div>
    <!-- 内容区域 /-->

    <!-- 底部导航 -->
    <footer class="main-footer">
        <div class="pull-right hidden-xs">
            <b>Version</b> 1.0.8
        </div>
        <strong>Copyright &copy; 2014-2017 <a href="http://www.itcast.cn">研究院研发部</a>.</strong> All rights reserved.
    </footer>
    <!-- 底部导航 /-->

</div>

<script src="../plugins/jQuery/jquery-2.2.3.min.js"></script>
<script src="../plugins/jQueryUI/jquery-ui.min.js"></script>
<script src="../plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="../plugins/adminLTE/js/app.min.js"></script>
<script>
    // 设置激活菜单
    function setSidebarActive(tagUri) {
        var liObj = $("#" + tagUri);
        if (liObj.length > 0) {
            liObj.parent().parent().addClass("active");
            liObj.addClass("active");
        }
    }


    $(document).ready(function() {
        // 激活导航位置
        setSidebarActive("travellog-review");
    });
</script>
</body>

</html>
